﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PJ.Business
{
    public interface IOrderedFragmentService : IEntityFragmentService
    {
        double Up(string parentId, double order);

        double Down(string parentId, double order);

        bool IsFirst(string parentId, double order);

        bool IsLast(string parentId, double order);

        void Up(IOrderedFragment item);

        void Down(IOrderedFragment item);

        bool IsFirst(IOrderedFragment item);

        bool IsLast(IOrderedFragment item);
    }
    public interface IOrderedFragmentService<O> : IEntityFragmentService<O>, IOrderedFragmentService
        where O : IOrderedFragment
    {
    }
}
